/**
 * @author zhaozeyang
 * @date 2018/11/2 15:49
 * @description
 */
public class 求二进制 {

    public static void main(String[] args) {
        int num = 3;
        for (int i = 31; i >= 0; i--) {
            System.out.print(num >>> i & 1);

        }
    }

    public static String get(long count) {
        String result = "";
        for (int i = 31; i >= 0; i--) {
            System.out.print(count >>> i & 1);
            result = result.concat(String.valueOf(count >>> i & 1));
        }
        return result;
    }

}
